<?php

namespace app\mini\controller\v1\client\validate;


use think\Validate;

class BillTitleValidate extends Validate
{
    protected $rule = [
        'buyerName'      => 'require',
        'buyerTaxNum'      => 'require|length:6,20',
        'email'      => 'require',
        'mobile'      => 'require',
        'type'      => 'require',
        'openBlank'      => 'require',
        'buyerAccount'      => 'require',
        'buyerAddress'      => 'require',
        'buyerTel'      => 'require',
        'default'      => 'require',
        'id'      => 'require',

    ];

    protected $message = [
        'buyerName.require'      => '发票抬头必填',
        'email.require'      => '邮箱必填',
        'type.require'      => '抬头类型必选',
        'id.require'      => '抬头ID必填',

    ];

    protected $scene = [
        'edit'  => ['buyerName','email','type','default'],
        'del'  => ['id'],
        'info'  => ['id'],
    ];
}